import React from 'react';
import WithTime from "./WithTime";

export const Hello = (props: { time: any }) => {
    return (
        <>
            <h1>Hello!</h1>
            <h2>{props.time.toLocaleString()}</h2>
        </>
    )
}

export default WithTime(Hello);